﻿<ui:View x:Class="CPPEI.Coolzon.Theme.Default.Views.SettingView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:ui="clr-namespace:CPPEI.Coolzon.UI;assembly=CPPEI.Coolzon.UI" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <ui:True2FalseConverter x:Key="true2False"/>
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Button Content="切换方案" Grid.Column="0" Margin="10" Name="_ctlBtnSwitchSolution"
                    Width="75" Height="40" Click="_ctlBtnSwitchSolution_Click"/>
        </Grid>
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Button Content="全屏模式" Grid.Column="0" Margin="10" Click="Button_Click_1"
                    IsEnabled="{Binding Path=IsFullScreen, Converter={StaticResource true2False}}"
                    Width="75" Height="40"/>
            <Button Content="窗口模式" Grid.Column="1" Margin="10" Click="Button_Click_2"
                    IsEnabled="{Binding Path=IsFullScreen}"
                    Width="75" Height="40"/>
        </Grid>
        <StackPanel Grid.Row="2" HorizontalAlignment="Center">
            <Button Name="_ctlBtnCancel" Content="关闭" Click="_ctlBtnCancel_Click_1"
                    Margin="10"
                    Width="75" Height="40"/>
        </StackPanel>
    </Grid>
</ui:View>
